package models;

import play.*;
import play.data.validation.Email;
import play.data.validation.Required;
import play.db.jpa.*;

import javax.persistence.*;
import java.util.*;

/**
 * 用户常定商品列表。
 * @author chencao
 *
 */
@Entity
public class RemittanceConfirm extends BaseEntity {
	public enum ConfirmStatus {
		NEW, PASS, FAIL
	} 
	
	//在线支付
	public static final String PAYTYPE_ONLINE = "online";
	//银行汇款
	public static final String PAYTYPE_BANK_TRANSFER = "bankTransfer";
	
	@OneToOne(fetch=FetchType.EAGER)
	public Order order;
	
	@Required
	public double price;
	//支付方式
	public String payType;
	@Required
	public String bankName;
	//付款人姓名
	@Required
	public String paierName;
	public String phone;
	@Email
	public String email;
	
	public String address;
	public String remark;
	//
//	public String adminRemark;
	@ManyToOne
	public Administrator admin;
	
	public ConfirmStatus confirmStatus;
}
